<!doctype html> 
<html ng-app='text'> 
<head> 
    <meta charset="utf-8"> 
    <title></title>  
    <script type="text/javascript" src='angular.js'></script>
    <script type="text/javascript">
 
    var app = angular.module('text',[]);
    console.log(app);

    app.constant('leo',10);

    app.controller('const1',function ($scope,leo){

        alert(leo)
        //alert(leo)
        //leo.b(leo.a)
        //alert(leo.a)
        //leo.p(10)
      //  console.log(leo);
       // console.log(leo.l.k);

    });

    </script>
</head>
<body ng-controller='const1'>



</body>
</html>